package ken.spring.cloud.alibaba.fallback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author lengleng
 */
@Component
public class EchoServiceFallbackFactory implements FallbackFactory<EchoServiceFallback> {


        //@Override
        public EchoServiceFallback create(Throwable throwable) {
            return new EchoServiceFallback(throwable);
        }

}
